﻿/* Author - Anshu Dutta - anshu.dutta@gmail.com
 * This source code is governed by terms and condition of Microsoft Public License (Ms-PL). 
 * Copyright (C)  2011 Anshu Dutta. anshu.dutta@gmail.com
 */
using System;
using System.Collections.ObjectModel;
using RssNewsFeeder.Lib.Model.Business;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RssNewsFeeder.Lib.ViewModel
{
    public class NewsCompanyViewModel:ViewModelBase
    {
        private NewsCompanyCollection _newsCompanyCollection;

        /// <summary>
        /// Constructor
        /// </summary>
        public NewsCompanyViewModel()
        {
            _newsCompanyCollection = new NewsCompanyCollection();
        }

        /// <summary>
        /// 
        /// </summary>
        public ObservableCollection<object> NewsCompanyCollection
        {
            get
            {
                //return new ObservableCollection<object>(_newsCompanyCollection.NewsCompanies);
                ObservableCollection<object> objColl = new ObservableCollection<object>();
                objColl.Add(_newsCompanyCollection.NewsCompanies);
                return objColl;  
            }
        }

        protected override void OnDispose()
        {
            base.OnDispose();
        }
    }
}
